<KeyListEntry name="toggle-message-tray"
_description="Show the message tray"/>
+ <KeyListEntry name="toggle-application-view"
+ _description="Show all applications"/>
+
</KeyListEntries>
Keybinding to open the application menu.
</_description>
</key>
+ <key name="toggle-application-view" type="as">
+ <default>["<Super>a"]</default>
+ <_summary>Keybinding to open the "Show Applications" view</_summary>
+ <_description>
+ Keybinding to open the "Show Applications" view of the Activities
+ Overview.
+ </_description>
+ </key>
<key name="toggle-message-tray" type="as">
<default>["<Super>m"]</default>
<_summary>Keybinding to toggle the visibility of the message tray</_summary>
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Clutter = imports.gi.Clutter;
+const Gio = imports.gi.Gio;
const Gtk = imports.gi.Gtk;
const Mainloop = imports.mainloop;
const Meta = imports.gi.Meta;
const Wanda = imports.ui.wanda;
const WorkspacesView = imports.ui.workspacesView;
+const SHELL_KEYBINDINGS_SCHEMA = 'org.gnome.shell.keybindings';
const FocusTrap = new Lang.Class({
Name: 'FocusTrap',
// accessing the properties.
this.constrainHeight = new Clutter.BindConstraint({ source: this._pageArea,
coordinate: Clutter.BindCoordinate.HEIGHT });
+
+ global.display.add_keybinding('toggle-application-view',
+ new Gio.Settings({ schema: SHELL_KEYBINDINGS_SCHEMA }),
+ Meta.KeyBindingFlags.NONE,
+ Lang.bind(this, this._showWithAppsPage));
+ },
+
+ _showWithAppsPage: function() {
+ Main.overview.show();
+ this._showAppsButton.set_checked(true);
},
show: function() {